﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EZXPNS
{
    class Item
    {
        // Fields
        private string _name;   // The item's name
        private string _date;   // The item's date
        private decimal _amount;  // The item's amount
        private string _category; // The item's category
        private string _payment; // The item's payment category
        
        // Constructor with no parameter
        public Item()
        {
            _name = "";
            _date = "";
            _amount = 0m;
            _category = "";
            _payment = "";
        }
        
        //Constructor with parameters
        public Item(string name, string date, decimal amount, string category,string payment)
        {
            _name = name;
            _date = date;
            _amount = amount;
            _category = category;
            _payment = payment;
        }

        // Name property
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        // Date property
        public string Date
        {
            get { return _date; }
            set { _date = value; }
        }

        // Amount property
        public decimal Amount
        {
            get { return _amount; }
            set { _amount = value; }
        }

        //Category property
        public string Category
        {
            get { return _category; }
            set { _category = value; }
        }

        //Payment property
        public string Payment
        {
            get { return _payment; }
            set { _payment = value; }
        }
    }
}
